﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO_QLNS
{
    public class OrderDetailDTO : TransferObject
    {
        public OrderDetailDTO() { }

        public OrderDetailDTO(OrderDetailDTO orderDetail)
        {
            _OrderDetailID = orderDetail.OrderDetailID;
            _OrderID = orderDetail.OrderID;
            _BookID = orderDetail.BookID;
            _Quantity = orderDetail.Quantity;
            _Price = orderDetail._Price;
        }

        public OrderDetailDTO(int orderDetailID, int orderID, int bookID, int quantity, double price)
        {
            _OrderDetailID = orderDetailID;
            _OrderID = orderID;
            _BookID = bookID;
            _Quantity = quantity;
            _Price = price;
        }

        private int _OrderDetailID;
        public int OrderDetailID
        {
            get { return _OrderDetailID; }
            set { _OrderDetailID = value; }
        }

        private int _OrderID;
        public int OrderID
        {
            get { return _OrderID; }
            set { _OrderID = value; }
        }

        private int _BookID;
        public int BookID
        {
            get { return _BookID; }
            set { _BookID = value; }
        }

        private int _Quantity;
        public int Quantity
        {
            get { return _Quantity; }
            set { _Quantity = value; }
        }

        private double _Price;
        public double Price
        {
            get { return _Price; }
            set { _Price = value; }
        }
    }
}
